<template>
    <div>
        <h2>子组件</h2>
    <h3>value:{{aa}}--{{cc}}</h3>
    <button @click="hclick">add+1按钮</button>
    </div>
</template>
<script>
export default {
    props:{
        aa:{
            type:Number,
            required:true
        }, 
        cc:{
            type:Number,
            required:true
        }
    },
    methods:{
        hclick(){
            this.$emit('update:aa',this.aa+1)
            this.$emit('update:cc',this.cc+1)
        }
    }
}
</script>